package com.kylin.common.security.service;

import com.kylin.common.core.security.SecurityService;
import com.kylin.common.security.util.SecurityUtils;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 实现核心包中登录用户安全认证服务
 * @author wuhao
 * @version 1.0 - 2022/10/18
 */
@Component
public class SecurityServiceImpl implements SecurityService {

    @Override
    public Serializable getUserId() {
        return SecurityUtils.getUserId();
    }
}
